﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Reports/Reports.Master" AutoEventWireup="true" CodeBehind="MonthActivities.aspx.cs" Inherits="ActivitiesControl.GUI.Web.Reports.MonthActivities" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

	<div style="margin: 10px;">
		<asp:DropDownList ID="CustomerDropDownList" runat="server" DataTextField="Name" DataValueField="Id" />
		<asp:DropDownList ID="DateDropDownList" runat="server" />
		<asp:Button ID="ReportButton" runat="server" Text="Renderizar Relatório" onclick="ReportButton_Click" />
	</div>

	<rsweb:ReportViewer ID="ActvitiesReportViewer"
						runat="server" 
						Font-Names="Verdana" 
						Font-Size="8pt" 
						InteractiveDeviceInfos="(Collection)" 
						WaitMessageFont-Names="Verdana" 
						WaitMessageFont-Size="14pt"
						Width="100%"
						Height="100%">
		<LocalReport ReportPath="Reports\Definitions\ActivitiesMonthly.rdlc">
			<DataSources>
				<rsweb:ReportDataSource DataSourceId="ReportObjectDataSource" Name="DataSet1" />
			</DataSources>
		</LocalReport>
	</rsweb:ReportViewer>
	
    <asp:ObjectDataSource ID="ReportObjectDataSource" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ActivitiesControl.GUI.Web.Reports.DataSets.ActivitiesControlDataSetTableAdapters.ActivitiesControlTableAdapter" onselecting="ReportObjectDataSource_Selecting">
		<SelectParameters>
			<asp:Parameter Name="customerId" Type="Int32" />
			<asp:Parameter Name="month" Type="Decimal" />
			<asp:Parameter Name="year" Type="Decimal" />
		</SelectParameters>
	</asp:ObjectDataSource>

</asp:Content>
